package com.fox0g.mapper;

import com.fox0g.pojo.Gls;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fox0g.pojo.Virus;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 86176
* @description 针对表【gls(隔离室)】的数据库操作Mapper
* @createDate 2024-07-10 10:40:57
* @Entity com.fox0g.pojo.Gls
*/

@Mapper
public interface GlsMapper extends BaseMapper<Gls> {
    @Insert("insert into test.gls(p1,p2,virus,wd,create_time)" +
            " values (#{p1},#{p2},#{virus},#{wd},#{createTime})")
    int insert(Gls gls);


//    @Select("select p1,p2,virus,wd,create_time from test.gls order by id desc ")
    List<Gls> glsAllData(@Param("begin") String begin,@Param("end") String end);
}




